/**
 * 路由视图地址配置
 */

/**
 * 引入module文件
 */
import login from './../common/components/Login';

import sjgl_router from './../modules/sjgl/config/router';
import scdh_router from './../modules/scdh/config/router';
import jfsc_router from './../modules/jfsc/config/router';
import jcsz_router from './../modules/jcsz/config/router';
import sjtj_router from './../modules/sjtj/config/router';
import scyy_router from './../modules/scyy/config/router';

import newstu from './../modules/newstu/index';

const routers = [];


if(sjgl_router != null) {
	routers.push(sjgl_router);
}
if(scdh_router != null) {
	routers.push(scdh_router);
}
if(jfsc_router != null) {
	routers.push(jfsc_router);
}
if(jcsz_router != null) {
	routers.push(jcsz_router);
}
if(sjtj_router != null) {
	routers.push(sjtj_router);
}
if(scyy_router != null) {
	routers.push(scyy_router);
}
export default [{
		path: "/",
		redirect: "/sjgl"
	}, {
		path: "",
		redirect: "/sjgl"
	},
	{
		path: "/login",
		component: login
	},
	{
		path: "/newstu",
		component: newstu
	},
	...routers
];